package com.zaoniao.enstudy.infrastructure.convert;

import com.zaoniao.enstudy.domain.entity.ZaoWordExample;
import com.zaoniao.enstudy.infrastructure.po.ZaoWordExamplePo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author llb
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ZaoWordExampleCrt {

    ZaoWordExampleCrt INSTANCE = Mappers.getMapper(ZaoWordExampleCrt.class);

    /**
     * poList转doList
     * @param poList -
     * @return -
     */
    List<ZaoWordExample> po2doList(List<ZaoWordExamplePo> poList);

    /**
     * doList转poList
     * @param doList -
     * @return -
     */
    List<ZaoWordExamplePo> do2poList(List<ZaoWordExample> doList);

}
